{% extends "base.html" %} {% block content %}
<script type="text/javascript">
	var myCalendar;
	function doOnLoad() {
		myCalendar = new dhtmlXCalendarObject(
				[ "id_start_date", "id_end_date" ]);
		myCalendar.loadUserLanguage('cn');
	}
</script>
<h1>修改{{edit_user.username}}属性</h1>
<div class="panelBar">
	<ul class="toolBar">
		<li class=""><a class="add" href="/admin/user/register">新增用户</a></li>
		<li class="line">line</li>
	</ul>
</div>
<div class="pageContent">
	<form method="post" action="">
		{% csrf_token %}
		<p>
			<label>用户名:</label> <input type="text" name="username" size="30" maxlength="30" value="{{edit_user.username}}" />
		</p>
		<p>
			<label>真实姓名:</label> <input name="last_name" type="text" size="30" maxlength="30" value="{{edit_user.last_name}}" />
		</p>
		<p>
			<label>密码:</label> <input type="password" name="password1" size="30" maxlength="20" alt="请输入密码." />
		</p>
		<p>
			<label>重复密码:</label> <input type="password" name="password2" size="30" maxlength="20" alt="请输入密码." />
		</p>
		<!--
		<p>
			<label>&nbsp;</label>
		</p>
		<p>
			<label>&nbsp;</label>
		</p>
		-->
		<p>
			<label>职务:</label> <input name="title" type="text" size="30" maxlength="30" value="{{edit_user_detail.title}}" />
		</p>
		<p>
			<label>生日：</label> <input name="birthday" id="birthday" type="text" value="{{edit_user_detail.birthday|date:'Y-m-d'}}" />
		</p>
		<p>
			<label>性别:</label> <select name="gender" class="required combox">
				<option value="1" {% if edit_user_detail.gender = 1 %}selected="selected"{% endif %} >男</option>
				<option value="0" {% if edit_user_detail.gender = 0 %}selected="selected"{% endif %} >女</option>
			</select>
		</p>
		<p>
			<label>提交报表类型：</label>
			日报<input name="daily" type="checkbox" value="1" {% if edit_user_detail.schedule_list = 1 or edit_user_detail.schedule_list = 3 or edit_user_detail.schedule_list = 7 %}checked="checked" {%endif%}/> &nbsp;&nbsp;&nbsp;&nbsp;
			周报<input name="monthly" type="checkbox" value="4" {% if edit_user_detail.schedule_list = 4 or edit_user_detail.schedule_list = 5 or edit_user_detail.schedule_list = 7 %}checked="checked" {%endif%}/> &nbsp;&nbsp;&nbsp;&nbsp;
			月报<input name="weekly" type="checkbox" value="2" {% if edit_user_detail.schedule_list = 2 or edit_user_detail.schedule_list = 6 or edit_user_detail.schedule_list = 7 %}checked="checked" {%endif%}/> 			
		</p>
		<p>
			<label>电子邮箱：</label> <input name="email" type="text" size="30" maxlength="30" value="{{edit_user.email}}" />
		</p>
		<p>
			<input name="submit" type="submit" value="确定" />
		</p>
	</form>
</div>
{% endblock %}
